home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Appearance SDK 1.0.4 / Appearance Sample Code / Source / SliderPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.2 KB  |  59 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SliderPane.h
  3.  
  4.     Contains:    Class to drive our example slider pane in MegaDialog.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <1>     9/11/97    edv        First checked in.
  25. */
  26.  
  27. #pragma once
  28.  
  29. #include "MegaPane.h"
  30. #include "Appearance.h"
  31.  
  32. class SliderPane : public MegaPane
  33. {
  34.     public:
  35.             SliderPane( DialogPtr dialog, SInt16 items );
  36.         virtual ~SliderPane();
  37.         
  38.         virtual void        ItemHit( SInt16 item );
  39.     
  40.     private:
  41.         static pascal void    SliderFeedbackProc( ControlHandle control, SInt16 part );
  42.         static pascal void    DrawPictureProc( ControlHandle control, SInt16 part );
  43.  
  44.         static ControlActionUPP    fSliderProc;
  45.         static ControlUserPaneDrawUPP fDrawProc;
  46.         
  47.         ControlHandle        fVerticalSlider1;
  48.         ControlHandle        fVerticalSlider2;
  49.         ControlHandle        fVerticalSlider3;
  50.         ControlHandle        fHorizontalSlider1;
  51.         ControlHandle        fHorizontalSlider2;
  52.         ControlHandle        fHorizontalSlider3;
  53.         ControlHandle        fUserPane;
  54.         
  55.         PicHandle            fPicture;
  56.         SInt16                fPictHeight;
  57.         SInt16                fPictWidth;
  58. };
  59.